home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / hypercar / xfcn / spttool.cpt / Support Tools eXternals 1.2.5 / card_31120.txt < prev    next >
Text File  |  1990-11-13  |  2KB  |  62 lines

  1. -- card: 31120 from stack: in.5
  2. -- bmap block id: 8059
  3. -- flags: 0000
  4. -- background id: 3858
  5. -- name: CopyStruct
  6. ----- HyperTalk script -----
  7. on hideObjects
  8.   hide cd fld "Example Info"
  9. end hideObjects
  10.  
  11. on showObjects
  12.   show cd fld "Example Info"
  13. end showObjects
  14.  
  15.  
  16. -- part 1 (field)
  17. -- low flags: 01
  18. -- high flags: 2000
  19. -- rect: left=27 top=129 right=324 bottom=245
  20. -- title width / last selected line: 0
  21. -- icon id / first selected line: 0 / 0
  22. -- text alignment: 0
  23. -- font id: 3
  24. -- text size: 10
  25. -- style flags: 0
  26. -- line height: 13
  27. -- part name: Example Info
  28.  
  29.  
  30. -- part contents for background part 20
  31. ----- text -----
  32. CopyStruct - A very strange XFCN that will probably be useful to a very select few.
  33.  
  34. Syntax :CopyStruct(sourcePath, destPath, <"noDialog:"errorGlobal>)
  35. SOURCEPATH: the path to be copied from (can be a drive/folder/file)
  36. DESTPATH: the path to be copied to (can be a drive/folder/file)
  37.  
  38. This XFCN copies the "look" of the drive/path in sourcePath onto the files/folders in destinationPath.  Only files/folders with the same name have their structures copied.  For folders:  its window coordinates, view, scroll, color, location (on the desktop or in the window) are all duplicated.  For files:  the location, color, and comments are copied.  If the paths specify drives/folders all files and folders within the paths are used.
  39.  
  40. This XFCN is most useful when you wish to make one drive "look" identical (or almost identical) to another.  We use it to make sure one version of our CD looks similar to past versions.  It saves time since after use of copyStruct only new files/folders need to be moved around instead of the entire drive.  We have used it successfully on drives as large as 600MB and 13,000 files.
  41.  
  42. It is also great for those of us who are anal retentive about our desktops and spend hours getting windows to line up!  Soon to come:  a version to save this data into a file so that you can undo your considerate friend's damage to your orderly desktop.
  43.  
  44. -- part contents for background part 38
  45. ----- text -----
  46. 7/50
  47.  
  48. -- part contents for card part 1
  49. ----- text -----
  50.      In order to experiment with this XFCN, do the following:
  51.  
  52. 1)  Duplicate any folder on your drive
  53. 2)  Open the copy and "mess things up"
  54. 3)  Pass the full pathnames of these two
  55.        folders to this XCMD
  56. 4)  The files in the destination folder
  57.        should be arranged in the same
  58.        fashion as the source files
  59.  
  60.  
  61.  
  62.